<include file="public@header" />
</head>
<body>
	<div class="wrap js-check-wrap">
		<ul class="nav nav-tabs">
			<li class="active"><a href="#">我的店铺</a></li>
		</ul>
			<table class="table table-hover table-bordered">
				<thead>
					<tr>
						<th align="left">ID</th>
						<th align="left">店铺名</th>
						<th align="left">代理平台名称</th>
						<th align="left">类别</th>
						<th align="left">店铺地址</th>
						<th align="left">创建时间</th>
						<th align="left">状态</th>
						<th align="left">操作</th>
					</tr>
				</thead>
				<tbody>
				<if condition="$id != 1">
					<if condition="$rest != ''">
						<tr>
							<td>{$rest.id}</td>
							<td>{$rest.shop_name}</td>
							<td>{$rest.brand_name}</td>
							<td>{$rest.type_name}</td>
							<td>{$rest.address}</td>
							<td>{$rest.c_time|date="Y-m-d H:i:s",###}</td>
							<td>
								<if condition="$rest['status'] eq 1">
									<a href="{:url('shop/ban',array('id'=>$rest.re_guid))}" class="js-ajax-dialog-btn" data-msg="你确定将店铺关闭吗?">激活</a>
									<else />
									<a href="{:url('shop/cancelban',array('id'=>$rest.re_guid))}" class="js-ajax-dialog-btn" data-msg="你确定将店铺激吗?">未激活</a>
								</if>
							</td>
							<td><a href="{:url('Shop/ownedit',array('id'=>$rest.re_guid))}">{:lang('EDIT')}</a></td>
						</tr>
					</if>
				</if>

				</tbody>
			</table>
	</div>
	<script src="__STATIC__/js/admin.js"></script>
</body>
</html>